package com.seari.bean;

import java.util.List;
import java.util.Objects;

/**
 * 故障应急报警列表查询响应类
 */
public class FaultWarningResponseBean {

    private String faultID;
    private String faultTime;
    private String faultType;
    private String faultContent;
    private String faultLine;
    private String faultLocation;
    private Integer faultStatu;
    private String userId;
    private String userName;
    private String leaderPhone;
    private String dataType;
    private Integer count;

    //全属性列表
    private List<String> tagList;

    public String getFaultID() {
        return faultID;
    }

    public void setFaultID(String faultID) {
        this.faultID = faultID;
    }

    public String getFaultTime() {
        return faultTime;
    }

    public void setFaultTime(String faultTime) {
        this.faultTime = faultTime;
    }

    public String getFaultType() {
        return faultType;
    }

    public void setFaultType(String faultType) {
        this.faultType = faultType;
    }

    public String getFaultContent() {
        return faultContent;
    }

    public void setFaultContent(String faultContent) {
        this.faultContent = faultContent;
    }

    public String getFaultLine() {
        return faultLine;
    }

    public void setFaultLine(String faultLine) {
        this.faultLine = faultLine;
    }

    public String getFaultLocation() {
        return faultLocation;
    }

    public void setFaultLocation(String faultLocation) {
        this.faultLocation = faultLocation;
    }

    public Integer getFaultStatu() {
        return faultStatu;
    }

    public void setFaultStatu(Integer faultStatu) {
        this.faultStatu = faultStatu;
    }

    public List<String> getMajorList() {
        return tagList;
    }

    public void setMajorList(List<String> tagList) {
        this.tagList = tagList;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getLeaderPhone() {
        return leaderPhone;
    }

    public void setLeaderPhone(String leaderPhone) {
        this.leaderPhone = leaderPhone;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        FaultWarningResponseBean that = (FaultWarningResponseBean) o;
        return Objects.equals(faultID, that.faultID) &&
                Objects.equals(faultTime, that.faultTime) &&
                Objects.equals(faultType, that.faultType) &&
                Objects.equals(faultContent, that.faultContent) &&
                Objects.equals(faultLine, that.faultLine) &&
                Objects.equals(faultLocation, that.faultLocation) &&
                Objects.equals(faultStatu, that.faultStatu) &&
                Objects.equals(userId, that.userId) &&
                Objects.equals(userName, that.userName) &&
                Objects.equals(leaderPhone, that.leaderPhone) &&
                Objects.equals(dataType, that.dataType) &&
                Objects.equals(tagList, that.tagList);
    }

    @Override
    public int hashCode() {
        return Objects.hash(faultID, faultTime, faultType, faultContent, faultLine, faultLocation, faultStatu, userId, userName, leaderPhone, dataType, tagList);
    }

    @Override
    public String toString() {
        return "FaultWarningResponseBean{" +
                "faultID='" + faultID + '\'' +
                ", faultTime='" + faultTime + '\'' +
                ", faultType='" + faultType + '\'' +
                ", faultContent='" + faultContent + '\'' +
                ", faultLine='" + faultLine + '\'' +
                ", faultLocation='" + faultLocation + '\'' +
                ", faultStatu=" + faultStatu +
                ", userId='" + userId + '\'' +
                ", userName='" + userName + '\'' +
                ", leaderPhone='" + leaderPhone + '\'' +
                ", dataType='" + dataType + '\'' +
                ", tagList=" + tagList +
                '}';
    }
}
